#ifndef FACEDETECTCILENT_H
#define FACEDETECTCILENT_H

#include <QMainWindow>
#include <opencv.hpp>
#include <QTcpSocket>
#include <QTimer>
using namespace cv;
using namespace  std;
QT_BEGIN_NAMESPACE
namespace Ui { class faceDetectCilent; }
QT_END_NAMESPACE

class faceDetectCilent : public QMainWindow
{
    Q_OBJECT

public:
    faceDetectCilent(QWidget *parent = nullptr);
    ~faceDetectCilent();
    void timerEvent(QTimerEvent *e);

private:
    VideoCapture cap;
    Ui::faceDetectCilent *ui;
    CascadeClassifier cascade;
    QTcpSocket tcpClient;
    QTimer mtime;
private slots:
    void timeFunct();
    void socket_Connect();
    void socket_DisConnect();
    void recv_data();
};
#endif // FACEDETECTCILENT_H
